import { Entity, PrimaryGeneratedColumn, Column } from "typeorm";

@Entity('user_group')
export class UserGroupEntity {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  user_id: string;

  @Column() 
  group_id: string;

  @Column({type: 'double', default: new Date().valueOf()})
  create_at: number;
}